.sidebar {
  width: 160px;
  height: 100vh;
  background: var(--color-background);
  border-right: 1px solid var(--color-border);
  position: fixed;
  left: 0;
  top: 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 2px 0 8px var(--color-shadow);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--border-radius-small);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  text-align: left;
}

.menu-item:hover {
  background: var(--color-card-bg);
  color: var(--color-text-primary);
}

.menu-item.active {
  background: var(--color-primary);
  color: white;
}

.menu-title {
  font-size: 14px;
  font-weight: 500;
}

/* 修改移动端样式 */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar:not(.hidden) {
    transform: translateX(0);
  }
  
  /* 添加遮罩层 */
  .sidebar:not(.hidden)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
} 